#include #include int main() { wiringPiSetup(); const int button=7; pinMode(button, INPUT); int prev=HIGH; while(1){ const int cur=digitalRead(button); if(prev==HIGH && cur==LOW) system("libcamera-still -t 500 --width 1920 --height 1080 -o my_pic.jpg"); prev=cur; delay(20); } return 0; }